#ifndef SHAPEMANAGERWIDGET_H
#define SHAPEMANAGERWIDGET_H

#include "ShapeManager.h"
#include "ShapeWidget.h"
#include "ShapeModel.h"

#include <QListView>
//#include <QVBoxLayout>

class ShapeManagerWidget: public QListView, public ShapeManager
{
	Q_OBJECT

public:
    ShapeManagerWidget(QWidget *parent);
    virtual ~ShapeManagerWidget();


protected:
	void paintEvent(QPaintEvent *e);
	QSize sizeHint() const;
	QSize minimumSizeHint() const;

	//virtual ::Shape* NewShape(const ::Shape& shape);

private:
	void SetupWidget();

	//QVBoxLayout *layout;
	//QListView *listView;
	ShapeModel *model;
};

#endif // SHAPEMANAGERWIDGET_H
